<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>JS数组测试</title>

        <script>
            console.log(Array.prototype);

            const arr = ["a", "b", {}, "d", "e"];

            const o = {name: "tom", age: 333};
            const a = 1;

            arr.slice(1, 3);

            arr.map(r => r);

            if (food === "pizza") {
                alert("Pizza ;-)");
            } else {
                alert("Not pizza ;-(");
            }
            function foo(items) {
                return items
                    .filter(item => item.checked)
                    .map(item => item.value);
            }
        </script>
    </head>

    <body></body>
</html>
